package com.kmzx.one.project.net;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;


@ApiModel(value = "立即购买参数")
public class OnceParam {

    @ApiModelProperty(value = "商品sku值", required = false, notes = "商品sku值")
    private String skuId;

    @ApiModelProperty(value = "商品数量", required = false, notes = "商品数量")
    private long num;

    @ApiModelProperty(value = "地址id", required = false, notes = "地址id")
    private String addressId;

    @ApiModelProperty(value = "用户id", required = false, notes = "用户id")
    private String userId;

    @ApiModelProperty(value = "商品id", required = false, notes = "商品id")
    private String prodId;

    @ApiModelProperty(value = "用户身份证", required = false, notes = "用户身份证")
    private String idCard;

    @ApiModelProperty(value = "用户姓名", required = false, notes = "用户姓名")
    private String realName;

    private BigDecimal amount;

    private int use;

    private String postCode;

    private int account;

    private String phone;

    private String tradeNum;

    private String say;


    public int getAccount() {
        return account;
    }

    public OnceParam setAccount(int account) {
        this.account = account;
        return this;
    }

    public int getUse() {
        return use;
    }

    public OnceParam setUse(int use) {
        this.use = use;
        return this;
    }

    public String getPostCode() {
        return postCode;
    }

    public OnceParam setPostCode(String postCode) {
        this.postCode = postCode;
        return this;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public OnceParam setAmount(BigDecimal amount) {
        this.amount = amount;
        return this;
    }

    public String getSkuId() {
        return skuId;
    }

    public OnceParam setSkuId(String skuId) {
        this.skuId = skuId;
        return this;
    }

    public long getNum() {
        return num;
    }

    public OnceParam setNum(long num) {
        this.num = num;
        return this;
    }

    public String getAddressId() {
        return addressId;
    }

    public OnceParam setAddressId(String addressId) {
        this.addressId = addressId;
        return this;
    }

    public String getUserId() {
        return userId;
    }

    public OnceParam setUserId(String userId) {
        this.userId = userId;
        return this;
    }

    public String getProdId() {
        return prodId;
    }

    public OnceParam setProdId(String prodId) {
        this.prodId = prodId;
        return this;
    }

    public String getIdCard() {
        return idCard;
    }

    public OnceParam setIdCard(String idCard) {
        this.idCard = idCard;
        return this;
    }

    public String getRealName() {
        return realName;
    }

    public OnceParam setRealName(String realName) {
        this.realName = realName;
        return this;
    }

    public String getPhone() {
        return phone;
    }

    public OnceParam setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    public String getTradeNum() {
        return tradeNum;
    }

    public OnceParam setTradeNum(String tradeNum) {
        this.tradeNum = tradeNum;
        return this;
    }

    public String getSay() {
        return say;
    }

    public OnceParam setSay(String say) {
        this.say = say;
        return this;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("OnceParam{");
        sb.append("skuId='").append(skuId).append('\'');
        sb.append(", num=").append(num);
        sb.append(", addressId='").append(addressId).append('\'');
        sb.append(", userId='").append(userId).append('\'');
        sb.append(", prodId='").append(prodId).append('\'');
        sb.append(", idCard='").append(idCard).append('\'');
        sb.append(", realName='").append(realName).append('\'');
        sb.append(", amount=").append(amount);
        sb.append(", use=").append(use);
        sb.append(", postCode='").append(postCode).append('\'');
        sb.append(", account=").append(account);
        sb.append('}');
        return sb.toString();
    }
}
